﻿<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>属于我们的欢乐时光</title>

<style type="text/css">
@font-face {
	font-family: digit;
	src: url('digital-7_mono.ttf') format("truetype");
}
</style>

<link href="<%=request.getContextPath()%>/css/person.css" type="text/css" rel="stylesheet">

</head>

<body>

<div id="mainDiv">
	<div id="content">
		<div id="code" style="margin-top : 0px;">
			<div class="box">
				 <img src="<%=request.getContextPath()%>/img/name.png" style="display : block;width:20px;height:20px;float:left"> <span class="keyword">${mem.membername }</span>
			</div>
			<div class="box">
				<img src="<%=request.getContextPath()%>/img/zuo.png" style="display : block;width:20px;height:20px;float:left"> <span class="keyword">${mem.motto }</span>
			</div>
			<div class="box">
				 <img src="<%=request.getContextPath()%>/img/QQ.png" style="display : block;width:20px;height:20px;float:left"> <span class="keyword">${mem.qq }</span>
			</div>
			<div class="box">
				 <img src="<%=request.getContextPath()%>/img/weixin.png" style="display : block;width:20px;height:20px;float:left"><span class="keyword">${mem.weixing }</span>
			</div>
			<div class="box">
				 <img src="<%=request.getContextPath()%>/img/weibo.png" style="display : block;width:20px;height:20px;float:left"> <span class="keyword">${mem.weibo }</span>
			</div>
			<div class="box">
				 <img src="<%=request.getContextPath()%>/img/introduce.png" style="display : block;width:20px;height:20px;float:left"> <span class="keyword">${mem.introduce }</span>
			</div>    
			<br>
		</div>
		<div id="loveHeart">
			<canvas id="garden"></canvas>
			<div id="words">
				<div id="messages">
					<img src="<%=request.getContextPath()%>/${mem.photo}" style="border-radius:50%; width:300px;height:300px;margin-top:-40px;margin-left:110px;">
					<div id="elapseClock"></div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-2.1.4.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/garden.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/functions.js"></script>
<script type="text/javascript">
var offsetX = $("#loveHeart").width() / 2;
var offsetY = $("#loveHeart").height() / 2 - 55;

if (!document.createElement('canvas').getContext) {
	var msg = document.createElement("div");
	msg.id = "errorMsg";
	msg.innerHTML = "Your browser doesn't support HTML5!<br/>Recommend use Chrome 14+/IE 9+/Firefox 7+/Safari 4+"; 
	document.body.appendChild(msg);
	$("#code").css("display", "none")
	$("#copyright").css("position", "absolute");
	$("#copyright").css("bottom", "10px");
	document.execCommand("stop");
} else {
	setTimeout(function () {
		startHeartAnimation();
	}, 5000);

	adjustCodePosition();
	$("#code").typewriter();
}
</script>
<script src="<%=request.getContextPath()%>/js/msgtest.js"></script>
</body>
</html>